package CopyAvi;

import java.io.*;

public class CopyAviDemo {
    public static void main(String[] args) throws IOException {
        long startTime=System.currentTimeMillis();
       method1();
        long endTime=System.currentTimeMillis();
        System.out.println("共耗时"+(endTime-startTime)+"毫秒");
    }
    public static  void method1() throws IOException {
        FileInputStream fis=new FileInputStream("C:\\Users\\86180\\Desktop\\nn.mp4");
        FileOutputStream fos=new FileOutputStream("C:\\Users\\86180\\Desktop\\test\\demo\\src\\CopyAvi\\nn.mp4");
        int by;
        while((by=fis.read())!=-1){
            fos.write(by);
        }
        fis.close();
        fos.close();
    }
}
